package com.neu.yishu.model;

public class UserInfo {
    private Long id;

    private String username;

    private String password;

    private Byte sex;

    private Byte contactType;

    private Integer contactNumber;

    private String wantBookType;

    private String wantBookNames;

    private String personalSignature;

    public UserInfo(Long id, String username, String password, Byte sex, Byte contactType, Integer contactNumber, String wantBookType, String wantBookNames, String personalSignature) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.contactType = contactType;
        this.contactNumber = contactNumber;
        this.wantBookType = wantBookType;
        this.wantBookNames = wantBookNames;
        this.personalSignature = personalSignature;
    }

    public UserInfo() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Byte getSex() {
        return sex;
    }

    public void setSex(Byte sex) {
        this.sex = sex;
    }

    public Byte getContactType() {
        return contactType;
    }

    public void setContactType(Byte contactType) {
        this.contactType = contactType;
    }

    public Integer getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(Integer contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String getWantBookType() {
        return wantBookType;
    }

    public void setWantBookType(String wantBookType) {
        this.wantBookType = wantBookType;
    }

    public String getWantBookNames() {
        return wantBookNames;
    }

    public void setWantBookNames(String wantBookNames) {
        this.wantBookNames = wantBookNames;
    }

    public String getPersonalSignature() {
        return personalSignature;
    }

    public void setPersonalSignature(String personalSignature) {
        this.personalSignature = personalSignature;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", password=").append(password);
        sb.append(", sex=").append(sex);
        sb.append(", contactType=").append(contactType);
        sb.append(", contactNumber=").append(contactNumber);
        sb.append(", wantBookType=").append(wantBookType);
        sb.append(", wantBookNames=").append(wantBookNames);
        sb.append(", personalSignature=").append(personalSignature);
        sb.append("]");
        return sb.toString();
    }
}